package com.xiaoxi.visitormode.composite;

import com.xiaoxi.visitormode.visitor.Element;

/**
 * @Author xiaoxi
 * @ProjectName design_mode
 * @PackageName com.xiaoxi.visitormode
 * @ClassName Entry
 * @Description 目录条目
 * @Date 2023/3/16 15:46
 * @Version 1.0
 */
public abstract class Entry implements Element {

    protected Entry parent;

    public abstract String getName();

    public abstract int getSize();

    public abstract void add(Entry entry) throws FileNotAddException;

    public abstract String pwd();

    public abstract void printList(String prefix);

}
